package polymorphic.Class.classInterface;

public class SalaryIncome implements Income {
    double income;

    public SalaryIncome(double income) {
        this.income = income;
    }

    public double getTax() {
        return income * 0.05;
    }

}
